<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>首页</title>
  <style type="text/css">

    form{
      width: 250px;
      margin: 100px auto;
      text-align: center;
      line-height: 38px;
      background: deepskyblue;
      border-radius: 4px;
    }
  </style>
</head>
<body>

<form action="${pageContext.request.contextPath}/user" method="post">
    <h2>图书管理系统</h2>
  <div style="color: red">${msg}</div>
  账号：<input type="text" name="username" required><br>
  密码：<input type="password" name="password" required><br>
  <input type="submit" value="提交">
</form>

</body>
</html>